package Bean;

import java.math.BigDecimal;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 张
 * Date: 2025-02-26
 * Time: 16:29
 */
//飞机票
public class Ticket {
    private String ticketId;
    private String userId;
    private String flightId;
    private String seatNumber;
    private double price;
    private TicketStatus status;

    // 枚举类型
    public enum TicketStatus {
        已预订, 已支付, 已使用, 已退票,改签中,退票中
    }

    public String getTicketId() {
        return ticketId;
    }

    public void setTicketId(String ticketId) {
        this.ticketId = ticketId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getFlightId() {
        return flightId;
    }

    public void setFlightId(String flightId) {
        this.flightId = flightId;
    }

    public String getSeatNumber() {
        return seatNumber;
    }

    public void setSeatNumber(String seatNumber) {
        this.seatNumber = seatNumber;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public TicketStatus getStatus() {
        return status;
    }

    public void setStatus(TicketStatus status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Ticket{" +
                "ticketId='" + ticketId + '\'' +
                ", userId='" + userId + '\'' +
                ", flightId='" + flightId + '\'' +
                ", seatNumber='" + seatNumber + '\'' +
                ", price=" + price +
                ", status=" + status +
                '}';
    }
}
